
	<fieldset>
		<legend>Bus <?php echo $count; ?></legend>
		<input type="hidden" name="buses[<?php echo $count - 1; ?>][bus_number]" id="buses[<?php echo $count - 1; ?>][bus_number]" value="<?php echo $count; ?>" />
		<ul class="formContainer">
                            
			<li class="floatFix">
				<label>Bus Type</label>
				<?php echo buses_dropdown($bus_list, null, null, 'buses[' . ($count - 1) . ']'); ?>
			</li>
                                
			<li class="floatFix">
				<label>Use default itinerary</label>
				<input type="checkbox" class="checkbox" name="buses[<?php echo $count - 1; ?>][default_itinerary]" id="buses[<?php echo $count - 1; ?>][default_itinerary]" checked="checked" />
			</li>
        
			<?php
 
                                    for ($i = 0; $i < count($default_itinerary); $i++)
                                    {
                                        $d = "<li class=\"floatFix\">\n";
                                        $d .= "\t<label>Night " . ($i + 1) . "</label>\n";
                                        
                                        $d .= "\t" . hostel_dropdown($i + 1, $default_itinerary[$i]['hostel_id'], 'buses[' . ($count - 1) . ']') . "\n";
                                                                          
                                        $d .= "</li>";
                                        
                                        echo $d;
                                    }

                                ?>
                            </ul>
                            
                            <li class="floatFix">
                                <a href="#">Remove this bus</a>
                            </li>
                            
                        </fieldset>
                    </li>

<li id="busField<?php echo $count + 1; ?>">
<?php 
$url = 'tours/additionalBus/';
$url .= ($count + 1) . "/";
$url .= $tour_type;
?>
<a href="#busField<?php echo $count + 1; ?>" onclick="new Ajax.Updater('busField<?php echo $count + 1; ?>', '<?php echo site_url($url); ?>')">Add Another Bus</a>
